﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vit.Common;
using Vit.Common.Models;

namespace Vit.Common.Providers
{
    public interface IMembershipProvider : IProvider
    {
        IUser GetCurrentUser();
        IUser CreateAnoymousUser();
        IUser GetUserByName(string name);
        IUser GetUserById(object id);

        bool CheckOperationPermission(IUser user, string uri);
        bool CheckModelPermission(IUser user, Type entityType, string propertyName);
    }
}
